[PATCH] Fix SS_ONSTACK support
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 12 Mar 2020 22:47:03 +0000 (22:47 +0000)
committerAurelien Jarno <aurel32@debian.org>
Thu, 12 Mar 2020 22:47:03 +0000 (22:47 +0000)
commita52bb7814ec346175b167c4cfcb04483aa8798d6
tree565397f25caf852150faa41434d5d28282ddbc34
parent1a4a0cd611350286d79fac8375bb837b43f708c7
[PATCH] Fix SS_ONSTACK support

* sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn2): New function,
unlocks SS and returns to the saved PC.
(__sigreturn): Do not unlock SS, and "return" into __sigreturn2 on the
thread stack instead of the saved PC.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-ONSTACK.diff
sysdeps/mach/hurd/i386/sigreturn.c